import http from "../utils/http";
const carApi = {
  // 获取总车辆
  getCarData () {
    return http({
      url: '/Operate/AllCarList',
      method: 'get'
    })
  },

  //获取车辆类型
  getCarType(){
    return http({
      url:'/Operate/CarType',
      method:'get'
    })
  },

  //多条件查询
  getCarInquire(data){
    return http({
      url:'/Operate/ConditionCarList',
      method:'get',
      params:data
    })
  },

  //新增车辆
  getCarContent(data){
    return http({
      url:'/Operate/AddCar',
      method:'post',
      data
    })
  },

  //单条数据删除
  getCarDele(id){
    return http({
       url:'/Operate/Delete',
       method:'get',
       params:{carId:id}
    })
  },

  //暂停恢复
  getCarResume(id,month){
    return http({
      url:'/Operate/State',
      method:'get',
      params:{
        carId:id,
        monthcardState:month
      }
    })
  },

  //修改
  getCarRevise(data){
    return http({
      url:'/Operate/Update',
      method:'post',
      data
    })
  }
}
export default carApi